package com.ibeeking.gmc.global.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName TenantAuthDO
 * @Description
 * @Author ibeeking
 * @Date 2020-12-23 13:43
 **/
@Data
@TableName("gmc_tenant_auth_record")
public class TenantAuthRecordDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 授权id
     */
    @TableField(value = "auth_id")
    private Long authId;

    /**
     * 申请人
     */
    @TableField(value = "applicant")
    private Long applicant;

    /**
     * 申请人
     */
    @TableField(value = "applicant_name")
    private String applicantName;

    /**
     * 审核人
     */
    @TableField(value = "checker")
    private Long checker;

    /**
     * 审核人
     */
    @TableField(value = "checker_name")
    private String checkerName;

    /**
     * 申请原因
     */
    @TableField(value = "applicant_reason")
    private String applicantReason;

    /**
     * 同意/拒绝原因
     */
    @TableField(value = "pass_refuse_reason")
    private String passRefuseReason;

    /**
     * 操作前状态
     */
    @TableField(value = "current_status")
    private Integer currentStatus;

    /**
     * 操作后状态
     */
    @TableField(value = "target_status")
    private Integer targetStatus;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("del_status")
    private Integer delStatus = 0;
}
